package des;

/**
 * @ClassName DebugTest
 * @Author 刘正星
 * @Date 2021/2/4 上午11:15
 * @Description
 *
 */


interface SUM{
    int getSum(int n);
}

public class DebugTest {

    static  SUM sum;

    public static void main(String[] args) {
        sum = n -> n==1?1:sum.getSum(n-1)+n;
        int result = sum.getSum(10);

        System.out.println(result);
    }
}
